- if session[:user_id] && session[:user_level] > 0
%p= link_to('Manage Users', :controller => 'users', :action => 'list')
%p= link_to('Logout', :controller => 'admin', :action => 'logout')
- else
= form_tag(:action => 'send_login')
= error_messages_for 'user'
= render :partial => 'users/form'
= submit_tag("Log in")
= form_tag
- end
